-- GENERATED SPELL FOR [Wildpaw Alpha] --


function spell0_11840(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_11840', 680, 1)
end

function spell1_11840(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(18072,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11840', 595, 1)
end

function Sorts_11840(pUnit, Event)
local choix_sorts_11840 = math.random(0, 1)
if choix_sorts_11840 == 0 then
pUnit:RegisterEvent('spell0_11840', 1, 1)
end
if choix_sorts_11840 == 1 then
pUnit:RegisterEvent('spell1_11840', 1, 1)
end
end

function mob11840_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11840', math.random(1500, 3000), 1)
end

function mob11840_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11840_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11840_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11840, 1, 'mob11840_Action')
RegisterUnitEvent(11840, 2, 'mob11840_Leave')
RegisterUnitEvent(11840, 3, 'mob11840_Kill')
RegisterUnitEvent(11840, 4, 'mob11840_Die')
